//
//  HomeRecommendHeaderView.m
//  copyrightTrading
//
//  Created by edz on 2020/10/9.
//  Copyright © 2020 郭子一. All rights reserved.
//

#import "HomeRecommendHeaderView.h"

@implementation HomeRecommendHeaderView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = UIColor.whiteColor;
        [self setupUI];
    }
    return self;
}

- (void)setupUI
{
    UIView *lineView = [UIView new];
    lineView.backgroundColor = RGB_VALUE(0xB81C22);
    [self addSubview:lineView];
    [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.offset(17);
        make.centerY.offset(0);
        make.height.mas_equalTo(15);
        make.width.mas_equalTo(2);
    }];
    
    self.titleLabel = [UILabel new];
    self.titleLabel.text = @"影像馆";
    self.titleLabel.font = JSS_MEDIUM_FONT(16);
    self.titleLabel.textColor = RGB_VALUE(0x1C2233);
//    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    [self addSubview:self.titleLabel];
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(lineView.mas_right).offset(5);
        make.centerY.offset(0);
        make.width.mas_equalTo(135);
        make.height.mas_equalTo(15);
    }];
}

@end
